[PATCH 23/23] net: mana: Add support for vlan tagging
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 9 Jun 2023 12:47:17 +0000 (05:47 -0700)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 3 May 2024 12:36:41 +0000 (14:36 +0200)
commit870e565ce26f12e5356f38ca9b166c5ffe1eee25
tree4bcb561cf719f74763ed4a776e8408d22cdf5188
parent374d86fd8208771679cc6c6b525a5783d3992425
[PATCH 23/23] net: mana: Add support for vlan tagging

To support vlan, use MANA_LONG_PKT_FMT if vlan tag is present in TX
skb. Then extract the vlan tag from the skb struct, and save it to
tx_oob for the NIC to transmit. For vlan tags on the payload, they
are accepted by the NIC too.

For RX, extract the vlan tag from CQE and put it into skb.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit b803d1fded4085d268507a432dac8077ead68971)
Signed-off-by: Bastian Blank <waldi@debian.org>
Gbp-Pq: Topic features/all/ethernet-microsoft
Gbp-Pq: Name 0023-net-mana-Add-support-for-vlan-tagging.patch
drivers/net/ethernet/microsoft/mana/mana_en.c